import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ProfitRecordVO, ProfitRecordQuery } from '@/api/retail/profitRecord/types';

/**
 * 查询分佣明细列表
 * @param query
 * @returns {*}
 */

export const listProfitRecord = (query?: ProfitRecordQuery): AxiosPromise<ProfitRecordVO[]> => {
  return request({
    url: '/merchant/profit/list',
    method: 'get',
    params: query
  });
};
